<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>Hello MUI</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<link rel="stylesheet" href="../css/mui.min.css">
		<script src="../js/mui.min.js"></script>
		<script src="../js/app.js"></script>
		<style>
			html,body {
				background-color: #efeff4;
			}
		</style>
		<script>
			mui.init();
		</script>
	</head>

	<body>

<header class="mui-bar mui-bar-nav">
	<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
	<h1 class="mui-title">输入框（Input）</h1>
</header>
<div class="mui-content">

	<div class="mui-content-padded" style="margin: 5px;">
		<h5>默认搜索框：</h5>
		<div class="mui-input-row mui-search">
			<input type="search" class="mui-input-clear" placeholder="">
		</div>
		<h5>语音输入搜索框：</h5>
		<div class="mui-input-row mui-search">
			<input id="search" type="search" class="mui-input-speech mui-input-clear" placeholder="带语音输入的搜索框">
		</div>
		<form class="mui-input-group">
			<div class="mui-input-row">
				<label>Input</label>
				<input type="text" placeholder="普通输入框">
			</div>
			<div class="mui-input-row">
				<label>Input</label>
				<input type="text" class="mui-input-clear" placeholder="带清除按钮的输入框">
			</div>

			<div class="mui-input-row">
				<label>Input</label>
				<input type="text" class="mui-input-speech mui-input-clear" placeholder="语音输入">
			</div>
			<div class="mui-button-row">
				<button class="mui-btn mui-btn-primary" onclick="return false;">确认</button>&nbsp;&nbsp;
				<button class="mui-btn mui-btn-danger" onclick="return false;">取消</button>
			</div>
		</form>
		<div class="mui-input-row" style="margin: 10px 5px;">
			<textarea id="textarea" rows="5" placeholder="多行文本框"></textarea>
		</div>
	</div>
</div>


<style type="text/css">
	h5 {
		margin: 5px 7px;
	}
</style>
<script>
	//语音识别完成事件
	document.getElementById("search").addEventListener('recognized', function(e) {
		console.log(e.detail.value);
	});
</script>
</body>
</html>